#ifndef PLANT_H
#define PLANT_H
#include<QPixmap>
#include<QRect>
#define Bullet_Num 30

//#define Bullet_Interval 20

#define Bullet_Interval 1


#include"bullet.h"
class plant
{
public:
    plant();
    //发射子弹
    void shoot();
    void setPosition(int x,int y);
    //void davidpunch();
    int m_x;
    int m_y;
    int type;
    int HP;
    QPixmap m_plant;//飞机资源
    //飞机边框
    QRect m_Rect;
    //弹匣
    Bullet m_bullets[Bullet_Num];
    //发射间隔记录
    int m_recorder;
};

#endif // PLANT_H
